home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cpt
/
cpt.doc
next >
Wrap
Text File
|
1987-10-20
|
3KB
|
86 lines
CPT - C Language Precedence Trainer Copyright 1987
by Rob Cohan All rights reserved
A key element in the rapid writing of error-free C code is a
thourough understanding of the relative precedence of the 35 C
language operators. Only when the precedence of any two
operators can be ranked without conscious thought can a C
programmer write with efficiency.
CPT was developed to quickly train the user to the requisite
level of skill in a very short time. Any errors will result in
CPT increasing the frequency of drilling on the
troublesome operators. At the end of a session, you may save
the error statistics on disk so that the mix of operators in the
next session will reflect the errors made in the current and
previous sessions.
Equipment Requirements
----------------------
An IBM PC/XT/AT or "Clone" with either Monochrome video, Color
Graphics video or an emulator of either will do.
A generic MSDOS verison of this program is available for those
without PC type machines.
CPT will run in as little as 38 Kb of free memory.
Help
----
Help is available at almost any time by entering a question
mark. The help screen shows the precedence levels of all C
language operators.
How to Exit
-----------
Exiting CPT can be accomplished at almost any time by pressing
Control+C or Control+Break. You will then be given the
opportunity quit by pressing 'q' or to continue the session by
pressing any other key, twice. If you choose to quit, you then
are given the choice to update the error logging file or to
ignore the errors made during this session (by pressing 'n' for
no.)
Noise Pollution
---------------
To lend a more game-like aura to this program, I added a bit of
sound to the signon routine. In commercial or nocturnal
environments where this might not be appropriate, just start the
program with a lower case 'q' as the sole argument, for example:
CPT q <RETURN>
NOT PUBLIC DOMAIN
-----------------
This version of CPT is not in the public domain. However, you
are granted a limited license to use it for your own training.
If you use it in a commercial environment and find it useful,
possibly you would like to make a contribution which will help
support further development efforts. Contributors will receive
the latest version of CPT by return mail.
Rob Cohan
Mr. Nameplate Companies
P.O. Box 18148
Phila., PA 19116-0148
Random Thoughts
---------------
CPT was written in 8086 assembly code and Lattice C version 3.21.
Version stamping was done with the aid of DSTAMP, available on
better bulletin board systems nationwide.